if (!this.getItem('frmSearch').isValid()) {
    return;
}

var frmVals = this.getItem('frmSearch').getValues();
var gridData = [];
this.getItem('grdGroup').getStore().each(function(rcd) {
    if (!Ext.isEmpty(rcd.get('levelNo'))) {
        gridData.push(rcd.data);
    }
});

var me = this;
Ext.Msg.show({
    title: T.label.save,
    msg: T.msg.are_you_sure_to_save_data,
    icon: Ext.Msg.QUESTION,
    buttons: Ext.Msg.YESNO,
    fn: function(btnId) {
        if ('yes' == btnId) {
            button.setDisabled(true);

            YX.ZbusRpc.request({
                module: 'SqcmSaveBatteryGroupFormulaService',
                showSuccess: true,
                params: {
                    levelDef: frmVals,
                    levelDat: gridData
                },
                success: function(rsp) {
                },
                callback: function() {
                    button.setDisabled(false);
                }
            });
        }
    }
});